<%--
  User: yang
  Date: 7/31/20
  Time: 09:46
  Description: TODO 
--%>
<%@page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- 导入核心标签库 --%>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>list</title>
    <%--  新 Bootstrap 核心 CSS 文件 --%>
    <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <script src="http://libs.baidu.com/jquery/1.7.0/jquery.min.js"></script>
    <%--  导入 jQuery   --%>
    <%--  最新的 Bootstrap 核心 JavaScript 文件   --%>
    <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

    <style type="text/css">
        .cla_1 {
            width: 98%;
            height: 180px;
            border: 1px solid blue;
            margin: 5px;
            text-align: center;
        }

        #div_user {

        }
    </style>
</head>
<body>
<div id="div_user" class="cla_1">
    <c:choose>
        <c:when test="${empty sessionScope.user}">
            <table>
                <tr>
                    <th>用户:</th>
                    <td><input type="text" name="uname"/></td>
                </tr>
                <tr>
                    <th>密码:</th>
                    <td><input type="text" name="upwd"/></td>
                </tr>
                <tr>
                    <th colspan="2">
                        <input type="button" value="游客注册" onclick="userRegist();"/>
                        <input type="button" value="用户登陆" onclick="userLogin();"/>
                    </th>
                </tr>
            </table>
        </c:when>
        <c:otherwise>
            <table>
                <tr>
                    <th>用户:</th>
                    <td>${sessionScope.uname}</td>
                </tr>
                <tr>
                    <th>积分:</th>
                    <td>${sessionScope.uscore}</td>
                </tr>
                <tr>
                    <th>电话:</th>
                    <td>${sessionScope.uphone}</td>
                </tr>
            </table>
        </c:otherwise>
    </c:choose>
</div>
<div id="div_star" class="cla_1"></div>
<div id="div_hot" class="cla_1"></div>
</body>
</html>
